﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>货品管理</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <!-- Sweet Alert -->
    <link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="css/plugins/datapicker/datepicker3.css" rel="stylesheet">
    <!-- jsTree -->
    <link href="css/plugins/jsTree/style.min.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">
    <link href="css/add-style.css" rel="stylesheet">
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div id="part1" class="col-sm-3">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>机构信息</h5>
                    </div>
                    <div class="ibox-content">
                        <p>
                            <a data-toggle="modal" class="btn btn-outline btn-success btn-sm" href="project_plan.html#modal-form-same">添加同级</a>
                            <a data-toggle="modal" class="btn btn-outline btn-info btn-sm" href="project_plan.html#modal-form-son">添加子级</a>
                            <a class="btn btn-outline btn-warning btn-sm" href="javascript:void(0)" onclick="demo_rename();">修改选中</a>
                            <a data-toggle="modal" class="btn btn-outline btn-danger btn-sm  demo4 " href="project_plan.html#modal-form">删除选中</a>
                        </p>
                        <div class="input-group input-group-sm">
                            <input type="text" placeholder="查找分类" class="input form-control">
                            <span class="input-group-btn">
                                <button type="button" class="btn btn-success"><i class="fa fa-search"></i>&nbsp;搜索</button>
                            </span>
                        </div>
                        <div id="jstree2" style="margin: 10px 0 0 -10px;">
                            <ul>
                                <li>恒富总仓库
                                    <ul>
                                        <li data-jstree='{"type":"icon"}'>富力家园服务处仓库
                                              <ul>
                                                  <li data-jstree='{"type":"son"}'>一期仓库</li>
                                                  <li data-jstree='{"type":"son"}'>二期仓库</li>
                                                  <li data-jstree='{"type":"son"}'>三期仓库</li>
                                              </ul>
                                        </li>
                                        <li data-jstree='{"type":"icon"}'>爱丁堡服务处仓库
                                        <ul>
                                                  <li data-jstree='{"type":"son"}'>写字楼仓库</li>
                                                  <li data-jstree='{"type":"son"}'>住宅仓库</li>
                                              </ul>
                                            </li>
                                        <li data-jstree='{"type":"icon"}'>富力新城仓库
                                            <ul>
                                                  <li data-jstree='{"type":"son"}'>一期仓库</li>
                                                  <li data-jstree='{"type":"son"}'>二期仓库</li>
                                                  <li data-jstree='{"type":"son"}'>三期仓库</li>
                                              </ul>
                                        </li>

                                    </ul>
                                </li>
                                <li>地产总仓库
                                    <ul>
                                        <li data-jstree='{"type":"icon"}'>双子座仓库
                                        </li>
                                        <li data-jstree='{"type":"icon"}'>富力中心仓库
                                        </li>
                                        <li data-jstree='{"type":"icon"}'>天鹅湾仓库
                                        </li>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-9">
                <div class="ibox">
                   <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>仓库信息</h5>
                         <a data-toggle="modal" href="storage_goods.html#modal-form" class="btn btn-primary btn-sm pull-right" style="margin:-7px 7px 0 0"><i class="fa fa-plus"></i>&nbsp; 增加 </a>
                    </div>
                        <div class="ibox-content">
                            <div class="row m-b-sm">
                                <div class="col-md-10 col-md-offset-2">
                                    <div class="input-group">
                                        <input type="text" placeholder="请输入仓库名称（支持模糊查询）" class="input-sm form-control"> <span class="input-group-btn">
                                            <button type="button" class="btn btn-sm btn-success"><i class="fa fa-search"></i>&nbsp;搜索</button>
                                        </span>
                                    </div>
                                </div>
                            </div>
                            <table class="table table-striped table-hover">
                                <thead>
                                    <tr>
                                        <th>序号</th>
                                        <th>所属机构</th>
                                        <th>仓库名称</th>
                                        <th>联系人</th>
                                        <th>联系电话</th>
                                        <th>送货地址</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>1</td>
                                        <td>富力新城服务处</td>
                                        <td>富力新城仓库</td>
                                        <td>张伟</td>
                                        <td>13833332222</td>
                                        <td>
                                            河北香河杨涛路1203号
                                        </td>
                                        <td>
                                            <a data-toggle="modal" href="storage_goods.html#modal-edit" class="text-warning">修改 </a>
                                            &nbsp;&nbsp;<a href="javascript:;"  class="text-danger demo4"> 删除</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>1</td>
                                        <td>天鹅湾一期服务处</td>
                                        <td>富力总仓库</td>
                                        <td>张伟</td>
                                        <td>13833332222</td>
                                        <td>
                                            河北香河杨涛路1203号
                                        </td>
                                        <td>
                                            <a data-toggle="modal" href="storage_goods.html#modal-edit" class="text-warning">修改 </a>
                                            &nbsp;&nbsp;<a href="javascript:;"  class="text-danger demo4"> 删除</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>1</td>
                                        <td>橡树林服务处</td>
                                        <td>富力又一城仓库</td>
                                        <td>张伟</td>
                                        <td>13833332222</td>
                                        <td>
                                            河北香河杨涛路1203号
                                        </td>
                                        <td>
                                            <a data-toggle="modal" href="storage_goods.html#modal-edit" class="text-warning">修改 </a>
                                            &nbsp;&nbsp;<a href="javascript:;"  class="text-danger demo4"> 删除</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>1</td>
                                        <td>富力新城服务处</td>
                                        <td>富力新城仓库</td>
                                        <td>张伟</td>
                                        <td>13833332222</td>
                                        <td>
                                            河北香河杨涛路1203号
                                        </td>
                                        <td>
                                            <a data-toggle="modal" href="storage_goods.html#modal-edit" class="text-warning">修改 </a>
                                            &nbsp;&nbsp;<a href="javascript:;"  class="text-danger demo4"> 删除</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>1</td>
                                        <td>天鹅湾一期服务处</td>
                                        <td>富力总仓库</td>
                                        <td>张伟</td>
                                        <td>13833332222</td>
                                        <td>
                                            河北香河杨涛路1203号
                                        </td>
                                        <td>
                                            <a data-toggle="modal" href="storage_goods.html#modal-edit" class="text-warning">修改 </a>
                                            &nbsp;&nbsp;<a href="javascript:;"  class="text-danger demo4"> 删除</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>1</td>
                                        <td>橡树林服务处</td>
                                        <td>富力又一城仓库</td>
                                        <td>张伟</td>
                                        <td>13833332222</td>
                                        <td>
                                            河北香河杨涛路1203号
                                        </td>
                                        <td>
                                            <a data-toggle="modal" href="storage_goods.html#modal-edit" class="text-warning">修改 </a>
                                            &nbsp;&nbsp;<a href="javascript:;"  class="text-danger demo4"> 删除</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>1</td>
                                        <td>富力新城服务处</td>
                                        <td>富力新城仓库</td>
                                        <td>张伟</td>
                                        <td>13833332222</td>
                                        <td>
                                            河北香河杨涛路1203号
                                        </td>
                                        <td>
                                            <a data-toggle="modal" href="storage_goods.html#modal-edit" class="text-warning">修改 </a>
                                            &nbsp;&nbsp;<a href="javascript:;"  class="text-danger demo4"> 删除</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>1</td>
                                        <td>天鹅湾一期服务处</td>
                                        <td>富力总仓库</td>
                                        <td>张伟</td>
                                        <td>13833332222</td>
                                        <td>
                                            河北香河杨涛路1203号
                                        </td>
                                        <td>
                                            <a data-toggle="modal" href="storage_goods.html#modal-edit" class="text-warning">修改 </a>
                                            &nbsp;&nbsp;<a href="javascript:;"  class="text-danger demo4"> 删除</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>1</td>
                                        <td>橡树林服务处</td>
                                        <td>富力又一城仓库</td>
                                        <td>张伟</td>
                                        <td>13833332222</td>
                                        <td>
                                            河北香河杨涛路1203号
                                        </td>
                                        <td>
                                            <a data-toggle="modal" href="storage_goods.html#modal-edit" class="text-warning">修改 </a>
                                            &nbsp;&nbsp;<a href="javascript:;"  class="text-danger demo4"> 删除</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>1</td>
                                        <td>富力新城服务处</td>
                                        <td>富力新城仓库</td>
                                        <td>张伟</td>
                                        <td>13833332222</td>
                                        <td>
                                            河北香河杨涛路1203号
                                        </td>
                                        <td>
                                            <a data-toggle="modal" href="storage_goods.html#modal-edit" class="text-warning">修改 </a>
                                            &nbsp;&nbsp;<a href="javascript:;"  class="text-danger demo4"> 删除</a>
                                        </td>
                                    </tr>
                                  
                                </tbody>
                            </table>
                            <div class="text-right">
                            <ul class="pagination">
                                <li><a href="#">&laquo;</a></li>
                                <li><a href="#">1</a></li>
                                <li><a href="#">2</a></li>
                                <li><a href="#">3</a></li>
                                <li><a href="#">4</a></li>
                                <li><a href="#">5</a></li>
                                <li><a href="#">&raquo;</a></li>
                                <li><a href="#">页数：1/10</a></li>
                                <li><a href="#">总记录数：1000</a></li>
                            </ul>
                        </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

 <div class="modal fade" id="modal-form" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h5 class="modal-title">新增仓库</h5>
                </div>
                <div class="modal-body">
                    <table style="width: 100%;">
                                    <tbody>
                                        <tr>
                                            <th>所属机构：</th>
                                            <td><select data-placeholder="选择楼盘" class="chosen-select form-control" tabindex="4">
                            <option value="">选择所属机构</option>
                            <option value="110000" hassubinfo="true" selected="selected">富力家园一期</option>
                            <option value="120000" hassubinfo="true">富力家园二期</option>
                        </select></td>
                                            <th>仓库名称：</th>
                                            <td>
                                                <input type="text" value="" class="form-control input-sm"></td>
                                        </tr>
                                        <tr>
                                            
                                            <th>负责人名称：</th>
                                            <td>
                                                <input type="text" value="" class="form-control input-sm"></td>
                                            <th>负责人电话：</th>
                                            <td>
                                                <input type="text" value="" class="form-control input-sm"></td>
                                            </tr>
                                            <tr>
                                            <th>仓库地址：</th>
                                            <td colspan="3">
                                                <input type="text" value="" class="form-control input-sm"></td>
                                        </tr>
                                        <tr>
                                            <th>备注：</th>
                                            <td colspan="3">
                                                <input type="text" value="" class="form-control input-sm"></td>
                                           
                                        </tr>
                                       
                                    </tbody>
                                </table>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary demo2">确定</button>
                </div>
            </div>
        </div>
    </div>   
    <div class="modal fade" id="modal-edit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h5 class="modal-title">修改仓库信息</h5>
                </div>
                <div class="modal-body">
                    <table style="width: 100%;">
                                    <tbody>
                                        <tr>
                                            <th>所属机构：</th>
                                            <td><select data-placeholder="选择楼盘" class="chosen-select form-control" tabindex="4">
                            <option value="">选择所属机构</option>
                            <option value="110000" hassubinfo="true" selected="selected">富力家园一期</option>
                            <option value="120000" hassubinfo="true">富力家园二期</option>
                        </select></td>
                                             <th>仓库名称：</th>
                                            <td>
                                                <input type="text" value="富力新城仓库" class="form-control input-sm"></td>
                                        </tr>
                                        <tr>
                                           <th>负责人名称：</th>
                                            <td>
                                                <input type="text" value="大张伟" class="form-control input-sm"></td>
                                            <th>负责人电话：</th>
                                            <td>
                                                <input type="text" value="15946854254" class="form-control input-sm"></td>
                                        </tr>
                                       
                                            <tr>
                                            <th>仓库地址：</th>
                                            <td colspan="3">
                                                <input type="text" value="北京朝阳区东三环中路61号富力中心" class="form-control input-sm"></td>
                                        </tr>

                                        <tr>

                                            <th>备注：</th>
                                            <td colspan="3">
                                                <input type="text" value="" class="form-control input-sm"></td>
                                           
                                        </tr>
                                       
                                    </tbody>
                                </table>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary demo2">确定</button>
                </div>
            </div>
        </div>
    </div>
    
    

     <!-- 全局js -->
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>
    <script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

    <!-- 自定义js -->
    <script src="js/content.js?v=1.0.0"></script>
    <script src="js/common.js"></script>


    <!-- jsTree plugin javascript -->
    <script src="js/plugins/jsTree/jstree.min.js"></script>

    <style>
        .jstree-open > .jstree-anchor > .fa-folder:before {
            content: "\f07c";
        }

        .jstree-default .jstree-icon.none {
            width: 0;
        }
    </style>
    <!--控制页面树元素-->
    <script>
        $(document).ready(function () {
            function demo_rename() {
                var ref = $('#jstree2').jstree(true),
                    sel = ref.get_selected();
                if (!sel.length) { return false; }
                sel = sel[0];
                ref.edit(sel);
            };
            $('#jstree2').jstree({
                'core': {
                    'check_callback': true
                },
                'plugins': ['types', 'dnd'],
                'types': {
                    'default': {
                        'icon': 'fa fa-folder'
                    },
                    'html': {
                        'icon': 'fa fa-file-code-o'
                    },
                    'svg': {
                        'icon': 'fa fa-file-picture-o'
                    },
                    'css': {
                        'icon': 'fa fa-file-code-o'
                    },
                    'img': {
                        'icon': 'fa fa-file-image-o'
                    },
                    'son': {
                        'icon': 'fa fa-file-text-o'
                    }

                }
            });
        });

    </script>
    <script>
        $(function () {
            $('.full-height-scroll').slimScroll({
                height: '100%'
            });
        });
    </script>
    <script>
        /**
* 使页面中所有.modal元素在窗口可视范围之内居中
**/
        function centerModals() {
            $('.modal').each(function (i) {
                var $clone = $(this).clone().css('display', 'block').appendTo('body');
                var top = Math.round(($clone.height() - $clone.find('.modal-content').height()) / 2);
                top = top > 50 ? top : 0;
                $clone.remove();
                $(this).find('.modal-content').css("margin-top", top - 50);
            });
        }
        // 在模态框出现的时候调用垂直居中函数
        $('.modal').on('show.bs.modal', centerModals);
        // 在窗口大小改变的时候调用垂直居中函数
        $(window).on('resize', centerModals);
    </script>

     <!-- Sweet alert -->
    <script src="js/plugins/sweetalert/sweetalert.min.js"></script>
    <script>
        //-- 保存小弹框--
        $('.demo2').click(function () {
            swal({
                title: "保存成功！",
                type: "success"
            });
        });

        $('.demo4').click(function () {
            swal({
                title: "您确定要删除这条信息吗",
                text: "删除后将无法恢复，请谨慎操作！",
                type: "warning",
                showCancelButton: true,
                confirmButtonColor: "#DD6B55",
                confirmButtonText: "删除",
                closeOnConfirm: false
            }, function () {
                swal("删除成功！", "您已经永久删除了这条信息。", "success");
            });
        });
    </script>
</body>
</html>